﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="HienThiTuVung.aspx.cs" Inherits="Content_View_Admin_HienThiTuVung" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    
    <script type="text/javascript" language="javascript">
function DeleteConfirmation()
{
    if(confirm("Có Chắc bạn muốn xóa?")==true)
   return true;
   else
   return false;
}
function setAll ( e ) {
        var form = document.forms [ 0 ];
        var eState = e.checked;
        for ( i = 0; i < form.length; i++ ) {
            e = form.elements [ i ];

            if ( e.name.indexOf ( "CheckBox1" ) > -1 ) {
            e.checked = eState;
            }
        }
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <form id="form1" runat="server">
    <br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
        <Columns>
            <asp:TemplateField>
             <HeaderTemplate>
                    <input ID="CheckHet" runat="server" onclick="setAll( this )" type="checkbox" />
                    <span style="color:White; font-weight:bold">Chọn hết</span>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="CheckBox" runat="server" />
                </ItemTemplate>
                <ControlStyle ForeColor="White" />
                <HeaderStyle BackColor="#6666FF" BorderColor="#333333" BorderStyle="Solid" 
                    BorderWidth="1px" ForeColor="White" />
                <ItemStyle BackColor="White" BorderColor="#333333" BorderStyle="Solid" 
                    BorderWidth="1px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Từ ">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Tu") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("Tu") %>'></asp:Label>
                </ItemTemplate>
                <FooterStyle BorderColor="#333333" BorderStyle="Solid" BorderWidth="1px" />
                <HeaderStyle BackColor="#6666FF" BorderColor="#333333" BorderStyle="Solid" 
                    BorderWidth="1px" ForeColor="White" />
                <ItemStyle BackColor="White" BorderColor="#333333" BorderStyle="Solid" 
                    BorderWidth="1px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Loại Từ">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("TenLoaiTu") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("TenLoaiTu") %>'></asp:Label>
                </ItemTemplate>
                <FooterStyle BorderColor="#333333" BorderStyle="Solid" BorderWidth="1px" />
                <HeaderStyle BackColor="#6666FF" BorderColor="#333333" BorderStyle="Solid" 
                    BorderWidth="1px" ForeColor="White" />
                <ItemStyle BackColor="White" BorderColor="#333333" BorderStyle="Solid" 
                    BorderWidth="1px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Lời Bình">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("GhiChu") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label3" runat="server" Text='<%# Bind("GhiChu") %>'></asp:Label>
                </ItemTemplate>
                <FooterStyle BorderColor="#333333" BorderStyle="Solid" BorderWidth="1px" />
                <HeaderStyle BackColor="#6666FF" BorderColor="#333333" BorderStyle="Solid" 
                    BorderWidth="1px" ForeColor="White" />
                <ItemStyle BackColor="White" BorderColor="#333333" BorderStyle="Solid" 
                    BorderWidth="1px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Thể Loại">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("TheLoai") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label4" runat="server" Text='<%# Bind("TheLoai") %>'></asp:Label>
                </ItemTemplate>
                <FooterStyle BorderColor="#333333" BorderStyle="Solid" BorderWidth="1px" />
                <HeaderStyle BackColor="#6666FF" BorderColor="#333333" BorderStyle="Solid" 
                    BorderWidth="1px" ForeColor="White" />
                <ItemStyle BackColor="White" BorderColor="#333333" BorderStyle="Solid" 
                    BorderWidth="1px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Ngôn Ngữ">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("NgonNgu") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label5" runat="server" Text='<%# Bind("NgonNgu") %>'></asp:Label>
                </ItemTemplate>
                <FooterStyle BorderColor="#333333" BorderStyle="Solid" BorderWidth="1px" />
                <HeaderStyle BackColor="#6666FF" BorderColor="#333333" BorderStyle="Solid" 
                    BorderWidth="1px" ForeColor="White" />
                <ItemStyle BackColor="White" BorderColor="#333333" BorderStyle="Solid" 
                    BorderWidth="1px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Số Lần Tìm">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("SoLanTim") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label6" runat="server" Text='<%# Bind("SoLanTim") %>'></asp:Label>
                </ItemTemplate>
                <FooterStyle BorderColor="#333333" BorderStyle="Solid" BorderWidth="1px" />
                <HeaderStyle BackColor="#6666FF" BorderColor="#333333" BorderStyle="Solid" 
                    BorderWidth="1px" ForeColor="White" />
                <ItemStyle BackColor="White" BorderColor="#333333" BorderStyle="Solid" 
                    BorderWidth="1px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Bảo Mật">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("BaoMat") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label7" runat="server" Text='<%# Bind("BaoMat") %>'></asp:Label>
                </ItemTemplate>
                <FooterStyle BorderColor="#333333" BorderStyle="Solid" BorderWidth="1px" />
                <HeaderStyle BackColor="#6666FF" BorderColor="#333333" BorderStyle="Solid" 
                    BorderWidth="1px" ForeColor="White" />
                <ItemStyle BackColor="White" BorderColor="#333333" BorderStyle="Solid" 
                    BorderWidth="1px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Số lần thêm">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("kadjdkakkadka") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label8" runat="server" Text='<%# Bind("kadjdkakkadka") %>'></asp:Label>
                </ItemTemplate>
                <FooterStyle BorderColor="#333333" BorderStyle="Solid" BorderWidth="1px" />
                <HeaderStyle BackColor="#6666FF" BorderColor="#333333" BorderStyle="Solid" 
                    BorderWidth="1px" ForeColor="White" />
                <ItemStyle BackColor="White" BorderColor="#333333" BorderStyle="Solid" 
                    BorderWidth="1px" />
            </asp:TemplateField>
            <asp:CommandField ShowDeleteButton="True">
            <HeaderStyle BackColor="#6666FF" BorderColor="#333333" BorderStyle="Solid" 
                BorderWidth="1px" />
            <ItemStyle BackColor="White" BorderColor="#333333" BorderStyle="Solid" 
                BorderWidth="1px" />
            </asp:CommandField>
            <asp:CommandField ShowSelectButton="True">
            <HeaderStyle BackColor="#6666FF" BorderColor="#333333" BorderStyle="Solid" 
                BorderWidth="1px" />
            <ItemStyle BackColor="White" BorderColor="#333333" BorderStyle="Solid" 
                BorderWidth="1px" />
            </asp:CommandField>
        </Columns>
    </asp:GridView>
    </form>
</asp:Content>

